<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.Map"%>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage=""%>
<%@ page import="java.util.List" %>
<%

%>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>网络在线考试――后台管理</title>
		<link href="<%=request.getContextPath() %>/CSS/style.css" rel="stylesheet"/>
	</head>
	<body>
	
		<%@ include file="/manage/top.jsp"%>
		
		<table width="960" border="0" align="center" cellspacing="0" cellpadding="0">
			<tr>
				<td width="176" align="center" valign="top" bgcolor="#FFFFFF">
					<%@ include file="/manage/left.jsp"%>
				</td>
				<td valign="top" bgcolor="#FFFFFF">
					<table width="99%" border="0" cellpadding="0" cellspacing="0" align="center">
						<tr>
							<td height="30" bgcolor="#EEEEEE" class="tableBorder_thin">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="78%" class="word_grey">
											&nbsp;当前位置：
											<span class="word_darkGrey">考生成绩查询 &gt;&gt;&gt;</span>
										</td>
										<td align="right">
											<img src="<%=request.getContextPath() %>/Images/m_ico1.gif" width="5" height="9"  alt=""/>&nbsp;
											当前管理员：11 &nbsp;
										</td>
									</tr>
								</table></td>
						</tr>
						
						<tr>
							<td align="center" valign="top">
								<form action="<%=request.getContextPath() %>/manage/grade.do?method=query" method="post">
								<table width="96%" height="40" border="0" cellpadding="0" cellspacing="0">
									<tr>
										<td align="left" valign="middle">&nbsp;
											查询条件：

											<%
												String grade_id = (String) request.getAttribute("grade_id");

											%>>
											<label>
												<select name="grade_id">
													<option value="1">准考证号</option>
													<option value="2">考试课程</option>
													<option value="3">考试时间</option>
												</select>
											</label>
											&nbsp;关键字：
											<%
												String key = (String)request.getParameter("key");
											%>
											<label><input type="text" value="<%=(key==null?"":key)%>" name="key"/></label>&nbsp;&nbsp;
											<input type="submit" class="btn_grey" value=" 查询 " />
										</td>
									</tr>
								</table>
								</form>
								
								<table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#67A8DB">
									<tr align="center">
										<td width="14%" height="27" bgcolor="#B2D6F1">准考证号</td>
										<td width="14%" height="27" bgcolor="#B2D6F1">学生ID</td>
										<td width="14%" height="27" bgcolor="#B2D6F1">课程ID</td>
										<td width="20%" bgcolor="#B2D6F1">考试时间</td>
										<td width="11%" bgcolor="#B2D6F1">单选题分数</td>
										<td width="11%" bgcolor="#B2D6F1">多选题分数</td>
										<td width="9%" bgcolor="#B2D6F1">合计分数</td>
									</tr>

									<%
//										List list = (List) request.getAttribute("list");
//
//										for (int i = 0; i < list.size(); i++) {
//											Map map = (Map) list.get(i);

									%>

									<jsp:useBean id="list_grade" scope="request" type="java.util.List"/>
									<c:forEach var="map"  items="${list_grade}">
										<tr>
											<td style="padding:5px;">${map.grade_id}</td>
											<td style="padding:5px;">${map.examinee_id}</td>
											<td align="center">${map.course_id}</td>
											<td align="center">${map.grade_minute_use}</td>
											<td align="center">${map.grade_radio_mark}</td>
											<td align="center">${map.grade_check_mark}</td>
											<td align="center">${map.grade_sum}</td>
										</tr>
									</c:forEach>



									<%
//										}
									%>

								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<%@ include file="/manage/copyright.jsp"%>
	</body>
</html>
